<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
global $CONFIG;
$visitor=$vars['entity'];
$icon=elgg_view('profile/icon',array('entity'=>$visitor->getownerentity(),'size'=>'small'));
$text=$visitor->title;
if(in_array($visitor->getownerentity()->guid,$CONFIG->IZAP_ONLINE_USERS))
echo '<img src='. $vars['url'] . 'mod/izap-profile-visitors/_graphics/online.jpg align=right alt="online" title="Online">';
echo elgg_view_image_block($icon, $text);
